<?php
/**
 * Created by PhpStorm.
 * User: shireli
 * Date: 15/5/13
 * Time: 下午3:48
 */


    $conn = mysql_connect("localhost","root","123");
    mysql_select_db("meshrepbazar");
    mysql_query("set names 'utf8'");
    $sql = "select * from `QM_REGISTER_USER_STATISTICS`";
    $AppCount = "SELECT COUNT(*) FROM `QM_REGISTER_USER_STATISTICS` WHERE `RU_TYPE`='App' AND `RU_TIME` LIKE '%{$time}%'";
    $result = mysql_query($sql,$conn);
    $resultApp = mysql_query($AppCount,$conn);
    $shireli = mysql_fetch_array($resultApp);
    echo "<pre>";
    print_r($shireli);

/*while($array=mysql_fetch_array($result)){
    echo "<pre>";
    print_r($array);
//    echo $array;
    echo ',';
}*/
for($v=1;$v<10;$v++){
    echo $v."<br>";
}
$region = array('乌鲁木齐','昌吉','石河子','伊犁','博乐','奎屯','克拉玛依','和田','克州','阿克苏','喀什','阿勒泰','巴州','塔城','哈密','吐鲁番','其他');
for($v=1;$v<18;$v++){
    echo $region[$v]."<br>";
}

$data = array(
    '乌鲁木齐' => array(
        'Web' => 10,
        'App' => 20
    ),
    '昌吉' => array(
        'Web' => 130,
        'App' => 202
    )
);
print_r($data);
